From: Katsumi Yamaoka Date: Tue, 23 Jun 2009 22:38:22 +0000 (+0000) Subject: (mm-dissect-buffer): Use message-fetch-field instead of mail-fetch-field to X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~11807 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=e36113100b5b2f4448b28255a8fd3e254c73ea30;p=emacs.git (mm-dissect-buffer): Use message-fetch-field instead of mail-fetch-field to fetch Content-Description header in order to exclude newlines. --- diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index ff610fdf460..48459b3dab5 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -1,3 +1,9 @@ +2009-06-22 Katsumi Yamaoka + + * mm-decode.el (mm-dissect-buffer): Use message-fetch-field instead of + mail-fetch-field to fetch Content-Description header in order to + exclude newlines. + 2009-06-01 Katsumi Yamaoka * gnus-art.el (gnus-mime-delete-part): Specify gnus-decoded as charset diff --git a/lisp/gnus/mm-decode.el b/lisp/gnus/mm-decode.el index ead419e25ec..098f091cba7 100644 --- a/lisp/gnus/mm-decode.el +++ b/lisp/gnus/mm-decode.el @@ -563,7 +563,9 @@ Postpone undisplaying of viewers for types in ctl (and ct (mail-header-parse-content-type ct)) cte (mail-fetch-field "content-transfer-encoding") cd (mail-fetch-field "content-disposition") - description (mail-fetch-field "content-description") + ;; Newlines in description should be stripped so as + ;; not to break the MIME tag into two or more lines. + description (message-fetch-field "content-description") id (mail-fetch-field "content-id")) (unless from (setq from (mail-fetch-field "from")))